
ifndef LG_RT_DIR
$(error LG_RT_DIR variable is not defined, aborting build)
endif

#Flags for directing the runtime makefile what to include
DEBUG ?= 0                   # Include debugging symbols
OUTPUT_LEVEL ?= LEVEL_PRINT  # Compile time print level

# GASNet and CUDA off by default for now
USE_GASNET ?= 0
USE_CUDA ?= 0
USE_HIP ?= 0
HIP_TARGET ?= ROCM

# Put the binary file name here
OUTFILE		:= task_ubench
# List all the application source files here
GEN_SRC		:= task_ubench.cc # .cc files
GEN_GPU_SRC	:= task_ubench_gpu.cu # .cu files

# You can modify these variables, some will be appended to by the runtime makefile
INC_FLAGS	:=
NVCC_FLAGS	:=
HIPCC_FLAGS	:=
GASNET_FLAGS	:=
LD_FLAGS	:=

include $(LG_RT_DIR)/runtime.mk

TESTARGS.default =
RUNMODE ?= default

run : $(OUTFILE)
	@echo $(dir $(OUTFILE))$(notdir $(OUTFILE)) $(TESTARGS.$(RUNMODE))
	@$(dir $(OUTFILE))$(notdir $(OUTFILE)) $(TESTARGS.$(RUNMODE))
